<?php

namespace maotool\core\response;

use maotool\exception\RuntimeException;

class ResponseException extends RuntimeException
{

    /**
     * 描述状态
     */
    protected $code;

    /**
     * 状态描述
     */
    protected $message;

    /**
     * 返回数据
     */
    protected $data;

    public function __construct($message = null, $data = null, $code = 0)
    {
        parent::__construct($message, $code);
    }

    /**
     * @param mixed $code
     */
    public function setCode($code)
    {
        $this->code = $code;
    }

    /**
     * @param mixed $message
     */
    public function setMessage($message)
    {
        $this->message = $message;
    }

}